
from api.base_api.base_api import BaseApi
import random

class SupportedCities(BaseApi):

    supported_cities_url = 'http://192.168.1.141:8001/car-estimate/supported-cities'

    def supported_cities(self):
        # 选择城市
        payload = {

        }
        response = self.get(self.supported_cities_url, payload)
        city_name = response.json()['data'][0]['cities'][0]['city_name']
        city_code = response.json()['data'][0]['cities'][0]['city_code']
        return city_code,city_name
